package rladidxo.basic;

import java.util.Scanner;

public class J03_nono {
public static void main(String[] args) {
	int o=1;
	while(o==1){
	
	Scanner scanner = new Scanner(System.in);
	System.out.print("당신은 미혼이십니까? 기혼이십니까?");
	String marry = scanner.next();
	scanner.close();
	//미혼인지 기혼인지를 입력
	
	if (marry.equals("미혼")){System.out.println("미혼");}
	else if(marry.equals("기혼")){System.out.println("기혼");}
	else {System.out.println("입력이 잘못되었습니다");break;}
	//미혼인지 기혼인지를 표기
	
	System.out.print("연봉을 입력하세요:");
	int money = scanner.nextInt();
	//연봉을 입력
	
	if(marry.equals("미혼")){
		if(money <30000000){System.out.println("내실 세금은:"+(money/100)*10.);}
		else if(money >= 30000000){System.out.println("내실 세금은:"+(money/100)*25.);}
		else{System.out.println("입력이  잘못되었습니다");break;}
	}
	else if(marry.equals("기혼")){
		if(money <60000000){System.out.println("내실 세금은:"+(money/100)*15.);}
		else if(money >= 60000000){System.out.println("내실 세금은:"+(money/100)*35.);}
		else{System.out.println("입력이  잘못되었습니다");break;}
	}
	else{
		System.out.println("입력이 잘못되었습니다");break;
	}


	}
	
}
}
